home *** CD-ROM | disk | FTP | other *** search
/ Softwarová Záchrana 3 / Softwarova-zachrana-3.bin / Xteq X-Setup / xqdcXSP-Setup-EN.exe / {app} / plugins / XQ Control Panel Hide Sys.xpl < prev    next >
Text File  |  2000-11-13  |  2KB  |  72 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 6.0"
  2. "TYPE"="6"
  3. "COUNT"="4"
  4. "UIPATH"="Appearance\Control Panel\Other Settings"
  5. "NAME"="Visible pages in "System""
  6. "OSVERSION"="10101"
  7. "LANGUAGE"="VBScript"
  8. "VERSION"="1.05"
  9. "TEXT 1"="Show "Device Manager" page in System control"
  10. "TEXT 2"="Show "Hardware Profiles" page in System control"
  11. "TEXT 3"="Show "File System" button in System control"
  12. "TEXT 4"="Show "Virtual Memory" button in System control"
  13. "DESCRIPTION 1"="To show a page inside the "System" control, activate it. To hide it, deactivate it."
  14. "DESCRIPTION 2"="These settings are for Windows 9x only."
  15. "AUTHOR"="Xteq Systems"
  16. "CONTACTURL"="http://www.xteq.com"
  17. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  18. "COMMENT 1"=" "
  19. "COMMENT 2"="Thanks for CptSiskoX for the settings!"
  20.  
  21.  
  22.  
  23. 'All DWORD. 1 = don't show, anything else =show
  24. sV1="HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System\NoDevMgrPage" 
  25. sV2="HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System\NoConfigPage"
  26. sV3="HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System\NoFileSysPage"
  27. sV4="HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System\NoVirtMemPage"
  28.  
  29. Sub Plugin_Initialize 
  30.     i=RegReadValue(sV1)
  31.     if i<>1 then SetUIElement 1,true
  32.  
  33.     i=RegReadValue(sV2)
  34.     if i<>1 then SetUIElement 2,true
  35.  
  36.     i=RegReadValue(sV3)
  37.     if i<>1 then SetUIElement 3,true
  38.  
  39.     i=RegReadValue(sV4)
  40.     if i<>1 then SetUIElement 4,true
  41. End Sub
  42.  
  43. Sub Plugin_CheckData(ElementIndex)
  44. End Sub
  45.  
  46. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  47.  Call WriteIt(1,sV1)
  48.  Call WriteIt(2,sV2)
  49.  Call WriteIt(3,sV3)
  50.  Call WriteIt(4,sV4)
  51.  
  52.  Call IndicateSettingChange()
  53. End Sub
  54.  
  55. Sub WriteIt(ITM,VAL)
  56.  b=GetUIElement(ITM)
  57.  if b=false then
  58.     call RegWriteValue(VAL,1,2)
  59.  else
  60.     chk=RegReadValue(VAL)
  61.     if IsEmpty(chk)=false then
  62.        Call RegDeleteValue(VAL)
  63.     end if
  64.  end if
  65. end sub
  66.  
  67. Sub Plugin_Terminate 
  68. End Sub
  69.  
  70.  
  71.  
  72.